Skip to content

fix(http): use receive timeout after an early response - #18

Open
JJenkx wants to merge 3 commits into
feat/linux-http-transportfrom
fix/linux-http-early-response-timeout
Open

JJenkx wants to merge 3 commits into
feat/linux-http-transportfrom
fix/linux-http-early-response-timeout

Conversation

@JJenkx

@JJenkx JJenkx commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

What

A server can reject a POST before reading its body. When an Expect: 100-continue request receives a final 413 response, the Linux HTTP backend keeps selecting the upload timeout because the uploaded byte count is still below the request size. A disabled or long send timeout therefore overrides the configured receive timeout while reading the response.

Select the receive deadline once final response headers are ready. The loopback regression rejects the upload with status 413 and delays its response body by 500 ms. With sending timeout disabled and receiving timeout set to 100 ms, SendRequest preserves the 413 response and ReadData returns the receive-timeout error.

Tested

The regression fails before the production change with early response used upload deadline for receiving: it reads the delayed body instead of honoring the receive deadline. After the fix, the full bundled Linux Release integration build and six checks pass without skips: guest_http, guest_http2, guest_http_network, guest_http_response_header, guest_ssl and patched_libraries. Final tested source network suite: 1.43 s. Committed integration bc48bb562 on upstream ee4962190 builds successfully with 32 workers. Local topic and integration conventions pass.

The new timeout condition and regression match the integration. The integration also contains the separate partial-body and empty-Location fixes from fork PRs #16 and #17; this topic includes neither. Windows and an independent full topic build have not been run. Host deadlines and console timeout semantics remain unmeasured on console hardware. No title progression or new exports are claimed.

This is a review PR in the JJenkx fork, based on the Linux transport branch. The upstream author quota remains occupied by boykopovar#4474.

Checklist

  • One topic per PR; separate timeout follow-up
  • No comments added to code
  • Generic early-response handling; no title-specific workaround
  • No game assets, screenshots or logs added to the repository
  • No new third-party code
  • Depends on: feat(http): add Linux HTTP and HTTPS streaming transport #15
  • Unblocks: none
  • AI-assisted: yes

October 13 upstream update

Updated against upstream 9d0a41d5a10 and the transport parent's new head 2ec383a8c6; the published head is 4107dc1176. It merges cleanly with its transport parent and newer upstream 0214069e33c (the intervening upstream change only updates the build workflow). Local conventions pass against the updated parent. The validation reported above applies to its original tested revision.

This PR deliberately targets feat/linux-http-transport to keep its follow-up diff separate. The repository's manual full-build workflow only accepts PRs targeting main, so its inapplicable dispatch was cancelled. Targeted validation of this updated head is reported below.

Targeted validation of published head 4107dc1176: Linux Release with bundled pinned dependencies; guest_http_tests, guest_http_response_header_tests and guest_http_network_tests build successfully. All three corresponding CTest checks pass without skips, including the local HTTP/HTTPS transport regression fixture. Each parent/follow-up branch was checked out and rebuilt separately in the same isolated validation worktree; these are individual branch results. This is a targeted Linux build, not full Windows or full-suite validation.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant